// 配置应用程序的类(常量)
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class AppColors {
  ///标题头背景色:浅白色
  static const AppBarColor = 0xffEDEDED;

  ///appBar二级菜单卡片背景颜色：灰色
  static const AppBarCardBgColor = 0xff303030;

  ///黑色
  static const AppBarTextColor = 0xff000000;

  ///tabBar高亮时颜色：蓝色
  static const TabIconActive = 0xff0099ff;

  ///tabBar常规颜色：浅灰色
  static const TabIconNormal = 0xff999999;

  ///白色
  static const AppBarPopupMenuTextColor = 0xffffffff;

  ///标题颜色:浅黑色
  static const TitleTextColor = 0xff353535;

  ///简介字体颜色
  static const DesTextColor = 0xff9e9e9e;

  ///边框颜色
  static const DividerColor = 0xffe6e6e6;

  ///角标背景颜色
  static const NotifyDotGg = 0xffE75D58;

  ///角标文字颜色
  static const NotifyDotText = 0xffFEFDFD;

  ///颜色
  static const ConversationMuteIcon = 0xffd8d8d8;

  ///会话列表边框线
  static const BorderColor = 0xffD9D9D9;

  ///高亮图标颜色
  static const ActionIconColor = 0xff121212;

  ///会话页默认字体颜色
  static const ConversationTextColor = 0xff151515;

  ///会话框上边的边框线
  static const ConversationBorderColor = 0xffE0E0E0;

  ///会话框背景颜色
  static const ConversationInputBgColor = 0xffF6F6F6;

  ///文本框文字颜色
  static const ChatBoxTextColor = 0xff050505;

  ///输入框光标颜色
  static const CursorColor = 0xff54BD67;

  ///鲲鹏主题颜色：绿
  static const KunPengThemeColor = 0xff4cba8e;

  ///鲲鹏主题背景颜色：灰
  static const KunPnegThemeBgColor = 0xffdbdbdb;
  static const KunPengWeatherTextColor = 0xff5d5553;

  ///鲲鹏-橙色
  static const KunPengPrimarayColor = 0xffff7f00;

  ///鲲鹏-灰
  static const KunPengPrimaryBgColor = 0xffF1F1F1;

  ///鲲鹏默认按钮背景颜色
  static const KunPengDefaultBtnGgColor = 0xfff1f1f1;

  ///鲲鹏显示层数字体颜色
  static const KunPengNumColor = 0xffBCBCBC;

  ///鲲鹏表格背景颜色
  static const KunPengGridGgColor = 0xffE0E0E0;

  ///通讯录
  static const ContactGroupTitleBg = 0xffebebeb;
  static const ContactGroupTitleTextColor = 0xff888888;

  /// 聊天页时间字体颜色
  static const TimeTextColor = 0xffA8A8A8;

  /// 聊天页文本字体颜色
  static const ConversationDetailTextColor = 0xff10170B;

  /// 聊天页文本背景颜色
  static const ConversationDetailBgColor = 0xffA9EA7A;

  /// 聊天页姓名字体颜色
  static const ConversationDetailNameColor = 0xff7d7d7d;
}

///app样式
class AppStyles {
  ///标题样式(字体大小：14，字体颜色：#353535)
  static const TitlteStyle = TextStyle(
    fontSize: 14.0,
    color: Color(AppColors.TitleTextColor),
  );

  ///头部标题样式(字体大小：18，字体颜色：#151515)
  static const HeadTitlteStyle = TextStyle(
    fontSize: 18.0,
    color: Color(AppColors.ConversationTextColor),
    fontWeight: FontWeight.bold,
  );

  ///简介字体样式(字体大小：12)
  static const DeseStyle = TextStyle(
    fontSize: 12.0,
    color: Color(AppColors.DesTextColor),
  );

  ///未读消息角标样式
  static const UnreadMsgCountDotStyle = TextStyle(
    fontSize: 12.0,
    color: Color(AppColors.NotifyDotText),
  );

  ///鲲鹏天气模块的日期文字样式
  static const KunPengDateTextStyle = TextStyle(
    fontSize: 14.0,
    color: Colors.black,
    fontWeight: FontWeight.w500,
  );

  ///文本输入框的文本样式
  static const ChatBoxTextStyle = TextStyle(
    fontSize: Constants.ContentTextSize,
    color: const Color(AppColors.ChatBoxTextColor),
  );

  ///通讯录groupTitle字体样式
  static const GroupTitleItemTextStyle = TextStyle(
    fontSize: 14.0,
    color: const Color(AppColors.ContactGroupTitleTextColor),
  );

  /// 聊天页时间字体样式
  static const TimeTextStyle = TextStyle(
    fontSize: 16.0,
    color: const Color(AppColors.TimeTextColor),
  );

  /// 聊天页文本字体颜色
  static const ConversationDetailTextStyle = TextStyle(
    fontSize: 18.0,
    color: const Color(AppColors.ConversationDetailTextColor),
    // height为行高
    height: 1.1,
  );

  /// 聊天页姓名字体颜色
  static const ConversationDetailNameTextStyle = TextStyle(
    fontSize: 12.0,
    color: const Color(AppColors.ConversationDetailNameColor),
  );
}

/// 定义路由
class Routes {
  static const Home = '/';
  static const Conversation = '/conversation';
}

class Constants {
  /// 自定义的字体图标iconfont
  static const IconFontFamily = "appIconFont";

  ///会议列表中头像大小
  static const ConversationAvatarSize = 40.0;

  ///边框宽度
  static const DividerWidth = 1.0;

  ///未读角标大小
  static const UnReadMsgNotifyDotSize = 20.0;

  ///勿扰图标大小
  static const ConversationMuteIconSize = 16.0;

  ///图标默认大小
  static const ActionIconSize = 12.0;

  ///聊天框高度
  static const InputHeight = 50.0;

  ///文本框 文字大小
  static const ContentTextSize = 20.0;
  static const ContactAvatarSize = 36.0;
}
